import request from '@/utils/request'

// 查询库存状态详细列表（默认展示sphwph所有不为0的记录及其状态）
export function getInventoryStatusList(query) {
  return request({
    url: '/basicInfo/inventoryChange/inventoryStatusList',
    method: 'get',
    params: query
  })
}

// 查询货位汇总信息列表
export function getHuoweiSummary(query) {
  return request({
    url: '/basicInfo/inventoryChange/huoweiSummary',
    method: 'get',
    params: query
  })
}

// 查询指定货位下的商品汇总信息列表
export function getDrugSummary(query) {
  return request({
    url: '/basicInfo/inventoryChange/drugSummary',
    method: 'get',
    params: query
  })
}

// 查询库存变更记录详情列表
export function getChangeDetails(query) {
  return request({
    url: '/basicInfo/inventoryChange/changeDetails',
    method: 'get',
    params: query
  })
}

// 根据盘点号分析盘点异常情况
export function analyzeByInventoryId(inventoryId, query) {
  return request({
    url: `/basicInfo/inventoryChange/analyzeByInventoryId/${inventoryId}`,
    method: 'get',
    params: query
  })
}

// 导出库存状态列表
export function exportInventoryStatusList(query) {
  return request({
    url: '/basicInfo/inventoryChange/export/inventoryStatusList',
    method: 'post',
    params: query
  })
}
